//
//  YYTeacherVC.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/9/12.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYTeacherVC.h"

@interface YYTeacherVC ()

@end

@implementation YYTeacherVC

- (void)viewDidLoad {
    [super viewDidLoad];
    [self reloadeData];
}

- (void)reloadeData{
    self.lbName.text = _teacherDic[@"teacher_name"];
    [self.imgHeader sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",DEF_INTERFACE_WEBVIEWSERVICE,_teacherDic[@"teacher_image"]]]];
    self.lbYear.text = [NSString stringWithFormat:@"%@年",_teacherDic[@"teacher_age"]];
    self.lbPhone.text = _teacherDic[@"teacher_phone"];
    self.lbContent.text = _teacherDic[@"teacher_about"];
    self.lbNumber.text = [NSString stringWithFormat:@"%@学员",_teacherDic[@"number"]];
    self.lbSchoole.text = _schooledDic[@"school_name"];
    self.lbAdress.text = _schooledDic[@"school_address"];
    for (UIView * view in self.gradeView.subviews) {
        [view removeFromSuperview];
    }
    for (int i =0; i<[_teacherDic[@"grade"] intValue]; i++) {
        UIImageView * star = [[UIImageView alloc] initWithFrame:CGRectMake(16*i, 4, 12, 12)];
        star.image = DEF_IMAGENAME(@"star_studaycar");
        [self.gradeView addSubview:star];
    }
    
}


@end
